]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/window-tracker: Enforce prefix for sandboxed applications
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Jul 2020 14:59:07 +0000 (16:59 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 6 Jul 2020 14:59:51 +0000 (14:59 +0000)
commitb60836932ad6339b54c4af19ce1f41a57a83013d
tree298f58f68ab1a9c951cb9485c03fb2783c7be336
parentbf47d1b22db3c96009cb6e0e41a0cf5aba04425f
shell/window-tracker: Enforce prefix for sandboxed applications

At least flatpak (no idea about snap, sorry) enforces that all .desktop
files exported by a sandboxed app use the application ID as prefix.

Add the same check when trying to find a match based on the WM_CLASS,
to prevent sandboxed apps from matching a .desktop file they do not
own.

At the moment this is unlikely as we check for a match on the
sandboxed app ID first, but we are about to change that.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/219
src/shell-window-tracker.c